package com.chenyaowei.happyhub.mapper.GoodsMapper;

import com.chenyaowei.happyhub.pojo.GoodsPojo.GoodVersion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GoodVersionMapper {
    List<GoodVersion> selectGoodVersionById(@Param("id") int id);
    GoodVersion selectGoodVersionByVersionId(@Param("versionId") int versionId);
    void deleteGoodVersion(@Param("versionId")String versionId);
    void deleteGoodVersionByGoodId(@Param("goodId")String goodId);
    void insertGoodVersion(@Param("id")String goodId,@Param("value") String value,@Param("price")String price,@Param("count")String count);
    void updateSalesVolume(@Param("count") String count,@Param("salesVolume") int salesVolume,@Param("salesPrice") float salesPrice,@Param("versionId") int versionId);
    void updateVersion(@Param("versionId")String versionId,@Param("value")String value,@Param("price")String price,@Param("count")String count);
}
